﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Sistema_de_Bastanteo_de_Poderes.Dominio.Cliente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>codCliente</th>
            <th>RUC</th>
            <th>razón_social</th>
            <th>fec_inic_oper</th>
            <th>tipo_empresa</th>
            <th>cant_empleados</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new {codigo=item.codCliente }) %> |
                <%: Html.ActionLink("Detalles", "Details", new { codigo = item.codCliente })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { codigo = item.codCliente })%>
            </td>
            <td>
                <%: item.codCliente %>
            </td>
            <td>
                <%: item.RUC %>
            </td>
            <td>
                <%: item.razón_social %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.fec_inic_oper) %>
            </td>
            <td>
                <%: item.tipo_empresa %>
            </td>
            <td>
                <%: item.cant_empleados %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

